<template>
  <div class="station-dialog">
    <el-row :gutter="10" type="flex" style="width: 100%;height: 100%;margin: 0">
      <el-col :span="12" style="height: 100%;">
        <div class="card-header">
          <img src="@/assets/images/title-point.png" class="point" alt="">
          <div class="header-title">警务站信息</div>
          <div class="line"></div>
          <img src="@/assets/images/title-arrow.png" class="arrow">
        </div>
        <div class="info-block">
          <div class="info-item">
            名称：{{info.name}}
          </div>
          <div class="info-item">
            类别：{{info.type}}
          </div>
          <div class="info-item">
            地址：{{info.address}}
          </div>
        </div>
      </el-col>
      <el-col :span="12" style="height: 100%;">
        <div class="card-header">
          <img src="@/assets/images/title-point.png" class="point" alt="">
          <div class="header-title">警务站环境</div>
          <div class="line"></div>
          <img src="@/assets/images/title-arrow.png" class="arrow">
        </div>
        <img style="width: 100%;max-height: calc(100% - 30px)" v-if="info.photo" :src="info.photo" alt="" >
      </el-col>
    </el-row>
  </div>
</template>
<script>
import Card from "@/components/Card.vue";

export default {
  name: "StationDialog",
  components: {Card},
  props:['info']
}
</script>
<style scoped lang="scss">
.station-dialog {
  width: 560px;
  height: 200px;
  display: flex;
  padding: 10px 0px;
  color: #fff;
  .info-block{
    width: 100%;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    .info-item{
      width: 100%;
      padding: 10px 15px;
      display: flex;
      align-items: center;
      margin: 10px 0;
      background: url("~@/assets/images/info-background.png") no-repeat center;
      background-size: 100% 100%;
    }
  }
  .card-header{
    height: 30px;
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    .point{
      width: 25px;
      height: 25px;
      border: none;
    }
    .line{
      flex-grow: 1;
      height: 1px;
      margin-right: 5px;
      background: rgba(10, 167, 255, 0.3);
    }
    .arrow{
      height: 13px;
    }
    .header-title{
      font-family: 冷酷体;
      color: $fontColorMain;
      font-size: 18px;
      font-weight: bold;
      margin:0 10px;
    }
  }
}
</style>
